home *** CD-ROM | disk | FTP | other *** search
- /*
- File: AboutBox.h
-
- Contains: Inline function to display About Box
-
- Owned by: Chris Linn
-
- Copyright: © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <1> 10/4/96 CSL first checked in
- */
-
- #ifndef _ABOUTBOX_
- #define _ABOUTBOX_
-
- #ifndef _USELIB_
- #include "UseLib.h"
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- class ODWindowState;
- struct Environment;
-
- typedef void (*ShowAboutBoxEntry)( Environment* ev, ODWindowState* windowState );
-
- inline void ShowAboutBox( Environment* ev, ODWindowState* windowState )
- {
- // This inline function loads & unloads the Dialogs library
- const StringPtr kODDialogsLib = "\pDialogsLib";
- const StringPtr kODShowAboutBoxSymbol = "\pShowAboutBoxEntry";
-
- CUsingLibrary dialogs( kODDialogsLib );
-
- (*((ShowAboutBoxEntry)dialogs.GetEntry( kODShowAboutBoxSymbol )))
- ( ev, windowState );
- }
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-